package com.example.demovote.web;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class IndexAction {

    // http://127.0.0.1:8080/hello?name=%E5%BC%A0%E4%B8%89
    @RequestMapping("hello")
    public String hello(String name){
        return "ni hao " + name;
    }
}
